package cn.zlj.pethome.pet.domain;

import cn.zlj.pethome.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author zlj
 * @since 2022-10-28
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class PetType extends BaseDomain {


    private String name;
    private String description;
    /**
     * 父类型id
     */
    private Long pid;

    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<PetType> children=new ArrayList<>();


}
